#{extends 'frame.html' /}

#{set title:'核实平台返款本金' /}



#{set 'moreStyles'}

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/task/verify-sys-refund.css'}" />

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/jquery.pagination.css'}" />

#{/set}



<div class="contentCard">

	<div class="contentTitle">

		<span class="iconfont">&#xf00ef;</span>

		核实平台返款本金

	</div>

	<div class="contentBody">

		<div class="taskFilterLine">

			<span class="floatLeft mr-8">平台</span>

			<select class="floatLeft mr-8 platform" id="platform" value="${currPlatform}">

				<option value="">全部</option>

				#{list items:platforms, as:'p'}

				<option value="${p}" ${selectedPlatform==p?'selected':''}>${p.title}</option>

				#{/list}

			</select>

			<span class="floatLeft mr-8">订单号</span>

			<input class="floatLeft mr-8" type="text" name="order" id="orderId"/>

			<span class="floatLeft mr-8">买号</span>

			<input class="floatLeft mr-8" type="text" name="account" id="buyerAccountNick"/>

			<a class="stdColorButton floatLeft" id="queryTask" href="javascript:;">查询</a>

		</div>

		<!-- <div class="taskWrapperHf clearfix">

			<a href="javascript:;" class="lnkChoseAll inputCheckBox floatLeft">&nbsp;</a>

			<span class="floatLeft" style="line-height:30px;">全选</span>

		</div> -->



		<!-- 标签页 -->

		<div class="taskTypeSwitchWrapper">

			<a class="taskTab focus" href="javascript:;" id="waitBuyerConfirmSysRefund" status="WAIT_BUYER_CONFIRM_SYS_REFUND">待确认返款订单</a>

			<a class="taskTab" href="javascript:;" id="waitBuyerConfirmEditedSysRefund" status="WAIT_BUYER_CONFIRM_EDITED_SYS_REFUND">商家修改过返款本金的订单</a>

			<a class="taskTab" href="javascript:;" id="waitSysRefund" status="WAIT_SYS_REFUND">已确认返款订单</a>

		</div>



		<div class="taskWrapper" style="overflow: hidden;" id="taskContainer"></div>

		<div class="popWrapper" style="display: none;" id="tr_loading_mask">

			<div class="maskLayer"></div>

			<img class="tr_juhua" src="@{'/public/images/pre_loading.gif'}" />		

		</div>

		<!--这里是分页区域-->

		<div class="pagin-btm clearFix">

			<div class="pagination"></div>

		</div>

	</div>

</div>



<textarea id="taskCellTemp" class="muban">

	{{#results}}

	<div class="taskCell">

		<div class="title">

			<a class="viewDetail" href="/buyer/task/{{id}}" target="_blank">[详情]</a>

			<span class="taskNo">

				任务编号：{{taskIdStr}}-{{id}}

				<span></span>

			</span>

			<a href="javascript:;" class="inputCheckBox floatLeft" tid="{{id}}"  pid="{{taskIdStr}}" rewardIngot="{{rewardIngot}}" paidFee="{{paidFee}}">&nbsp;</a>

			<span class="floatLeft">买号：</span>

			<span class="mr20 floatLeft">{{buyerAccountNick}}</span>

			<span class="shop"> <i class="plat_small {{platIcon}}"></i>

				{{shopName}}

			</span>

		</div>

		<div class="body">

			<table class="normTable">

				<thead>

					<tr>

						<td class="item-list"></td>

						<td class="amount"></td>

						<td class="orderid"></td>

						<td class="refundNo"></td>

						<td class="opera"></td>

					</tr>

				</thead>

				<tbody>

					<tr>

						<td class="item-list">

							<div class="item-box">

								<div class="pic">

									<img src="{{itemPic}}" />

								</div>

								<p class="title">{{itemTitle}}</p>

							</div>

						</td>

						<td class="orderid"> <em class="cap">订单号</em>

							{{orderId}}

						</td>

						<td class="item-list">

							<em class="cap">订单付款截图</em>

							<a href="{{itemPicUrl}}" target="_blank">

							<div class="item-box">

								<div class="pic">

									<img src="{{itemPicUrl}}" />

								</div>

							</div>

							</a>

						</td>

						<td class="amount"> <em class="cap">任务佣金</em>

							{{taskRewardIngot}} 元

						</td>

						<td class="amount"> <em class="cap">退款本金</em>

							{{paidFeeFor}} 元

						</td>

						<td class="opera" data-id="{{id}}">

						{{#isConfirmed}}

							<input type="button" class="J_cancel bold red" value=" 撤销返款 " />

						{{/isConfirmed}}

						{{^isConfirmed}}

							<input type="button" class="J_confirm bold green" value=" 确认 " />

							<input type="button" class="J_reject bold red" value=" 驳回 " />

						{{/isConfirmed}}

						</td>

					</tr>

				</tbody>



			</table>



		</div>

	</div>

	{{/results}}

</textarea>

#{set 'moreScripts'}

<script src="@{'/public/javascripts/jquery.pagination.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/jquery.number.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/mustache.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/task/verifySysRefund.js'}" type="text/javascript"></script>

<script type="text/javascript">

	App.module = 'takeTask';

	App.taskInfo ='${taskInfo}';

	App.currplatform = '${currPlatform}'

</script>

#{/set}